<?php
namespace app\common\model;

class Feedback extends Base
{
    public function getImgAttr($val)
    {
        if(empty($val)) return [];

        $imgs = json_decode($val, true);

        $url = getUrl();

        foreach ($imgs as &$value) {
            $value = $url . $value;
        }

        return $imgs;
    }
}